<%@ page language="java" contentType="text/html; charset=utf-8" %>
<jsp:useBean id="rs" class="weaver.conn.RecordSet" scope="page"/>
<%@ page import="com.alibaba.fastjson.JSONObject" %>
<%@ page import="weaver.general.Util" %>
<%
    JSONObject jsonData = new JSONObject();
    String docid = Util.null2String( request.getParameter( "docid" ) );
    int seccategory = 0;
    try {
        rs.executeQuery("select seccategory from docdetail where id=?",docid);
        rs.next();
        seccategory = Util.getIntValue( rs.getString(1) );
    } catch (Exception e) {
        e.printStackTrace();
    }
    jsonData.put( "seccategory", seccategory );
    out.print( jsonData.toJSONString() );
%>
